package com.hl.card.pay.controller;

import com.alibaba.fastjson.JSONObject;
import com.hl.card.common.util.ResponseModel;
import com.hl.card.pay.service.CommonService;
import com.hl.card.pay.util.PayDigestUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 其他交易接口
 */
@Controller
public class CommonController {

    @Autowired
    private CommonService commonService;

    @GetMapping("getPayErrorTimes")
    public ResponseModel getPayErrorTimes(String userId){
        ResponseModel responseModel=new ResponseModel();
        responseModel.setStatus("0000");
        responseModel.setData(commonService.findPayError(userId));
        return responseModel;
    };

}
